<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>SN-E后台管理系统</title>
<meta name="description" content="这是一个 index 页面">
<meta name="keywords" content="index">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="renderer" content="webkit">
<link rel="shortcut  icon" type="image/x-icon" href="<?php echo get_cover(C('BROWSERID'),'path');?>" media="screen"  />
<link rel="stylesheet" href="/Public/amazeui/css/amazeui.min.css"/>
<link rel="stylesheet" type="text/css" href="/Public/css/core.css" media="all">
<link rel="stylesheet" type="text/css" href="/Application/Admin/Static/css/style.css" media="all">
<link rel="stylesheet" type="text/css" href="/Application/Admin/Static/css/common.css" media="all">
<!--[if (gte IE 9)|!(IE)]>-->
<script src="/Public/jquery-2.1.4.min.js"></script>
<!--<![endif]-->
<!--[if lt IE 9]>
<script type="text/javascript" src="/Public/jquery.min.js"></script>
<script src="/Public/amazeui/js/modernizr.js"></script>
<script src="/Public/amazeui/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
<script type="text/javascript" charset="utf-8" src="/Public/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/Public/ueditor/ueditor.all.min.js"></script>
<!--<![endif]-->

<style type="text/css">
    .sent-margin{padding:50px;}
</style>

</head>
<body>
<!-- 头部 -->
<header class="am-topbar admin-header am-topbar-fixed-top">
	<div class="am-topbar-brand"> <strong>SN-E</strong><small>网站后台管理系统</small></div>

	<button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}">
		<span class="am-sr-only">导航切换</span>
		<span class="am-icon-bars"></span>
	</button>

	<div class="am-collapse am-topbar-collapse" id="topbar-collapse">

		<ul class="am-nav am-nav-pills am-topbar-nav am-padding-left admin-header-list">
		<?php if(is_array($__MENU__["main"])): $i = 0; $__LIST__ = $__MENU__["main"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i; $menu['icon'] = $menu['icon'] ? $menu['icon'] : 'home'; ?>
			<?php if(($menu["hide"]) != "1"): ?><li data-id="<?php echo ($menu["id"]); ?>" class="<?php echo ((isset($menu["class"]) && ($menu["class"] !== ""))?($menu["class"]):''); ?>">
				<a href="<?php echo (U($menu["url"])); ?>"><i class="am-icon am-icon-<?php echo ($menu["icon"]); ?>"></i> <?php echo ($menu["title"]); ?></a>
			</li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
		</ul>
		<ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
			<li class="am-dropdown" data-am-dropdown>
				<a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
					<span class="am-icon-users"></span>
					<?php echo session('user_auth.username');?>
					<span class="am-icon-caret-down"></span>
				</a>
				<ul class="am-dropdown-content">
					<li><a href="<?php echo U('User/updatePassword');?>"><span class="am-icon-cog"></span> 修改密码</a></li>
					<li><a href="<?php echo U('User/updateNickname');?>"><span class="am-icon-user"></span> 修改昵称</a></li>
					<li><a href="<?php echo U('Public/logout');?>"><span class="am-icon-power-off"></span> 退出</a></li>
				</ul>
			</li>
			<li>
				<a href="index.php" target="_blank">
					<span class="am-icon-home"></span>
					首页
				</a>
			</li>
			<li class="am-hide-sm-only">
				<a href="javascript:;" id="admin-fullscreen">
					<span class="am-icon-arrows-alt"></span>
					<span class="admin-fullText">开启全屏</span>
				</a>
			</li>
		</ul>
	</div>
</header>
<!-- /头部 -->

<div class="am-cf admin-main">

	<!-- 边栏 -->
	<!-- sidebar start -->
	<div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
		<div class="am-offcanvas-bar admin-offcanvas-bar">
			<ul class="am-list admin-sidebar-list">
				
				<?php if(!empty($_extra_menu)): ?>
				<?php echo extra_menu($_extra_menu,$__MENU__); endif; ?>
				<?php if(is_array($__MENU__["child"])): $i = 0; $__LIST__ = $__MENU__["child"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$sub_menu): $mod = ($i % 2 );++$i;?><!-- 子导航 -->
				<?php if(!empty($sub_menu)): ?><li class="admin-parent">
					<a class="am-cf" data-am-collapse="{ target: '#collapse-nav-<?php echo ($key); ?>' }">
						<span class="am-icon-list-ul"></span>
						<?php if(!empty($key)): echo ($key); endif; ?>
						<span class="am-icon-angle-right am-fr am-margin-right"></span>
					</a>
					<ul class="am-list am-collapse admin-sidebar-sub am-in" id="collapse-nav-<?php echo ($key); ?>">
					<?php if(is_array($sub_menu)): $i = 0; $__LIST__ = $sub_menu;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$menu): $mod = ($i % 2 );++$i;?><li>
							<a href="<?php echo (U($menu["url"])); ?>" class="am-cf">
								<i class="am-icon <?php if($menu['icon']): ?>am-icon-<?php echo ($menu["icon"]); else: ?>am-icon-file-text<?php endif; ?>"></i>
								<?php echo ($menu["title"]); ?>
								<!-- <span class="am-icon-star am-fr am-margin-right admin-icon-yellow"></span> -->
							</a>
						</li><?php endforeach; endif; else: echo "" ;endif; ?>
					</ul>
				</li><?php endif; endforeach; endif; else: echo "" ;endif; ?>
				
			</ul>

			<div class="am-panel am-panel-default admin-sidebar-panel">
				<div class="am-panel-bd">
					<p><span class="am-icon-bookmark"></span> 公告</p>
					<p>为企业创造价值，与客户共同成功</p>
					<p class="am-text-right">—— 南北科技</p>
				</div>
			</div>
		</div>
	</div>
	<!-- sidebar end -->
	<!-- /边栏 -->

	<!-- 内容区 -->
	<div class="admin-content">
		
			<!-- nav -->
			<?php if(!empty($_show_nav)): ?><ol class="am-breadcrumb">
				<?php $i = '1'; ?>
				<?php if(is_array($_nav)): foreach($_nav as $k=>$v): if($i == count($_nav)): ?><li class="am-active"><?php echo ($v); ?></li>
						<?php else: ?>
						<li><a href="<?php echo ($k); ?>"><?php echo ($v); ?></a></li><?php endif; ?>
					<?php $i = $i+1; endforeach; endif; ?>
				</ol><?php endif; ?>
			<!-- nav -->
		
		<div id="top-alert" class="fixed alert alert-error" style="display: none;">
			<button class="close fixed" style="margin-top: 4px;">&times;</button>
			<div class="alert-content">这是内容</div>
		</div>
		
<div class="am-cf am-u-md-12 sent-margin">
    <h1><i class="am-icon-btn am-danger am-icon-check"></i> 抱歉,出错啦!</h1>
    <p class="error">
        <?php echo($error); ?></p>
    <p class="detail"></p>
    <p class="jump"> <b id="wait"><?php echo($waitSecond); ?></b>
        秒后页面将自动跳转
    </p>
    <div>
        <a id="href" class="am-btn am-btn-primary" id="btn-now" href="<?php echo($jumpUrl); ?>">立即跳转</a>
        <button id="btn-stop" class="am-btn am-btn-default" type="button" onclick="stop()">停止跳转</button>
        <a id="href" class="am-btn am-btn-success" id="btn-now" href="<?php echo(U('Public/logout')); ?>">重新登录</a>
    </div>
</div>
<script type="text/javascript">
(function(){
 var wait = document.getElementById('wait'),href = document.getElementById('href').href;
 var interval = setInterval(function(){
        var time = --wait.innerHTML;
        if(time <= 0) {
            location.href = href;
            clearInterval(interval);
        };
     }, 1000);
  window.stop = function (){
         console.log(111);
            clearInterval(interval);
 }
 })();
</script>

	</div>

</div>

<a class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>

<footer class="footer am-topbar-fixed-bottom">
	<hr>
	<p class="am-padding-left">长春市南北科技有限公司</p>
</footer>
<!-- /内容区 -->
<script type="text/javascript">
(function(){
	var SentCMS = window.Sent = {
	"ROOT"   : "", //当前网站地址
	"APP"    : "/admin.php?s=", //当前项目地址
	"PUBLIC" : "/Public", //项目公共目录地址
	"DEEP"   : "<?php echo C('URL_PATHINFO_DEPR');?>", //PATHINFO分割符
	"MODEL"  : ["<?php echo C('URL_MODEL');?>", "<?php echo C('URL_CASE_INSENSITIVE');?>", "<?php echo C('URL_HTML_SUFFIX');?>"],
	"VAR"    : ["<?php echo C('VAR_MODULE');?>", "<?php echo C('VAR_CONTROLLER');?>", "<?php echo C('VAR_ACTION');?>"]
	}
})();
</script>
<script type="text/javascript" src="/Application/Admin/Static/js/jquery.mousewheel.js"></script>
<script type="text/javascript" src="/Public/core.js"></script>
<script type="text/javascript" src="/Public/amazeui/js/amazeui.min.js"></script>
<script type="text/javascript" src="/Application/Admin/Static/js/common.js"></script>
<script type="text/javascript">
if (!$('select').hasClass('sort-option')) {
	$('select').chosen();
};
$('input[class="switch"]').bootstrapSwitch({size:'xs'});
</script>

</body>
</html>